using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace ClientTools.Client.Controls.Packager.PackageClasses
{
    public class DocumentTypeInfo
    {
        private string _alias;
        public string Alias
        {
            get { return _alias; }
            set { _alias = value; }
        }

        private string _name;
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _icon;
        public string Icon
        {
            get { return _icon; }
            set { _icon = value; }
        }

        private string _thumbnail;
        public string Thumbnail
        {
            get { return _thumbnail; }
            set { _thumbnail = value; }
        }

        //private BindingList<string> _allowedTemplates = new BindingList<string>();
        //[XmlArrayItem("Template")]
        //public BindingList<string> AllowedTemplates
        //{
        //    get { return _allowedTemplates; }
        //    set { _allowedTemplates = value; }
        //}

        private BindingList<AllowedTemplate> _allowedTemplates = new BindingList<AllowedTemplate>();
        [XmlArrayItem("Template")]
        public BindingList<AllowedTemplate> AllowedTemplates
        {
            get { return _allowedTemplates; }
            set { _allowedTemplates = value; }
        }

        private string _defaultTemplate;
        public string DefaultTemplate
        {
            get { return _defaultTemplate; }
            set { _defaultTemplate = value; }
        }

    }
}
